/*
 * Copyright (C) Francisco Morero Peyrona. All rights reserved.
 *
 * This software is published under the terms of Open Source 
 * License version 1.1, a copy of which has been included with this
 * distribution in the License.txt file.  
 */

package jdbcmanager.procedure;

import java.awt.*;
import javax.swing.*;

import jdbcmanager.dbtools.datatypes.*;

/**
 * Manage Stored Procedures.
 * <ul>
 *    <li>Shows information
 *    <li>Edit existing ones
 *    <li>Create new ones
 *    <li>Delete existing ones
 * </ul>
 *
 * @author Francisco Morero Peyrona
 */  // NEXT: falta todo lo correspondiente a la edicion: ahora solo muestra inf
public final class DbProcedure extends JPanel
{
   private InfoPanel  info;
   private TablePanel table;

   public DbProcedure( StoredProcedureDefinition sp )
   {
      this.info  = new InfoPanel( sp );
      this.table = new TablePanel( sp );

      setLayout( new BorderLayout() );

      add( this.info , BorderLayout.NORTH  );
      add( this.table, BorderLayout.CENTER );
   }
}